package com.sc.VenusQueryBeta.contract.login;

import com.hengjun.kingstar.sdk.base.BasePresenter;
import com.hengjun.kingstar.sdk.base.IBaseActivity;
import com.hengjun.kingstar.sdk.base.IBaseModel;
import com.sc.VenusQueryBeta.model.bean.login.RegisterVerticationBean;

import io.reactivex.Observable;

/**
 * 注册页面契约接口
 */

public interface RegisterContract {
abstract class RegisterPresenter extends BasePresenter<IRegisterModel,IRegisterView>{
    //获取注册验正证
    public abstract void getVerticatinCode(String clientUID,String deviceUID,String deviceType,String registerSmsnum,String areaCode,String flag);
}
    interface IRegisterModel extends IBaseModel{
        ////获取注册验正证
        Observable<RegisterVerticationBean> getVerticatinCode(String clientUID, String deviceUID, String deviceType, String registerSmsnum, String areaCode, String flag);
    }
    interface IRegisterView extends IBaseActivity{
        /**
         * 显示验证码
         * @param registerVerticationBean
         */
        void showVerticationDataSuccess(RegisterVerticationBean registerVerticationBean);

        void showNetworkError();
    }
}
